#ifndef H_GRANDFATHER
#define H_GRANDFATHER

#include <string>
#include <algorithm>
#include<tntdb/connection.h>

using namespace std;

class User {
    private:
        typedef unsigned size_type;
        string user_name;
    public:
        User();
        bool isvalid;
        bool validate(string name, string pass, tntdb::Connection* conn);
        string create(string name, string pass, tntdb::Connection* conn);
        void logout();
	    string getName();
};

#endif
